home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / bsrc_p2.arc / XFER.H < prev    next >
Encoding:
C/C++ Source or Header  |  1988-11-30  |  4.8 KB  |  164 lines

  1. /*--------------------------------------------------------------------------*/
  2. /*               The Opus Computer-Based Conversation System                */
  3. /*       (c) Copyright 1986, Wynn Wagner III, All Rights Reserved           */
  4. /* This source code is proprietary and confidential.  Not for distribution. */
  5. /*--------------------------------------------------------------------------*/
  6.  
  7. #define  FILE_SECTION
  8. #define  WAZOO_SECTION
  9. #include "opus.h"
  10.  
  11. /*--------------------------------------------------------------------------*/
  12. /* Status and error words                                                   */
  13. /*--------------------------------------------------------------------------*/
  14. extern char  *EOT_msg;
  15. extern char  *ACK_msg;
  16. extern char  *NAK_msg;
  17. extern char  *SOH_msg;
  18. extern char  *CAN_msg;
  19. extern char  *SYN_msg;
  20. extern char  *DISK_msg;
  21. extern char  *CRC_msg;
  22. extern char  *CHK_msg;
  23. extern char  *DUPE_msg;
  24. extern char  *FUTURE_msg;
  25. extern char  *C_msg;
  26. extern char  *SHRT_msg;
  27. extern char  *TIME_msg;
  28. extern char  *SYN_msg;
  29. extern char  *INIT_msg;
  30. extern char  *FUBAR_msg;
  31. extern char  *CARRIER_msg;
  32. extern char  *NOTHING_msg;
  33. extern char  *KBD_msg;
  34. extern char  *IDUNNO_msg;
  35. extern char  *CMPL_msg;
  36. extern char  *SYNC_msg;
  37. extern char  *OPEN_msg;
  38. extern char  *WRITE_msg;
  39.  
  40. #ifdef BINKLEY
  41. extern char  *IO_msg;
  42. extern char  *CLOSE_msg;
  43. extern char  *CREATE_msg;
  44. extern char  *READ_msg;
  45. extern char  *WRITE_msg;
  46. extern char  *SEEK_msg;
  47. extern char  *MEMOVFL_msg;
  48.  
  49. #define VERSION 1.20
  50. #define BINK_MAJVERSION 1
  51. #define BINK_MINVERSION 20
  52. #define ANNOUNCE "BinkleyTerm Version 1.20\r\n"
  53. #define xfer_id "Binkley 1.20"
  54.  
  55. #define read_binary "rb"
  56. #define write_binary "wb"
  57. #define read_ascii "rt"
  58. #define write_ascii "wt"
  59.  
  60. #define stcgfn strcpy
  61. #define wherex() fossil_wherex()
  62. #define wherey() fossil_wherey()
  63. #define gotoxy(x,y) fossil_gotoxy(x,y)
  64. #define crc_finish(x) x
  65. #define CLEAR_IOERR() errno = 0
  66. #define wait_for_clear() while (!OUT_EMPTY()) 
  67. #define TIMED_READ(a) com_getc(a)
  68. extern int locate_x, locate_y;
  69. extern int cur_baud, errno;
  70. extern char e_input[];
  71. void pascal throughput();
  72.  
  73. extern int opus_maj;
  74. extern int opus_min;
  75. extern int remote_zone;
  76. extern int remote_net;
  77. extern int remote_node;
  78. extern int remote_point;
  79. extern int remote_capabilities;
  80. extern char *remote_sysop;
  81. extern char *remote_password;
  82.  
  83. struct FILEINFO {
  84.     char rsvd[21];
  85.     char attr;
  86.     long time;
  87.     long size;
  88.     char name[13];
  89.     char nill;
  90.     };
  91.  
  92. #endif    /* BINKLEY */
  93.  
  94.  
  95. /*--------------------------------------------------------------------------*/
  96. /* Signals                                                                  */
  97. /*--------------------------------------------------------------------------*/
  98. extern char  *CAN_xfer;                   /* lots of CANs then BSs          */
  99.  
  100.  
  101. /*--------------------------------------------------------------------------*/
  102. /* Sealink and Telink header structure                                      */
  103. /*--------------------------------------------------------------------------*/
  104. #define HEADER_NAMESIZE  17
  105. struct zero_block
  106.    begin
  107.       long size;                          /* file length                    */
  108.       long time;                          /* file date/time stamp           */
  109.       char name[HEADER_NAMESIZE];         /* original file name             */
  110.       char moi[15];                       /* sending program name           */
  111.       char noacks;                        /* for SLO                        */
  112.    end;
  113.  
  114.  
  115. /*--------------------------------------------------------------------------*/
  116. /* Ascii character mnemonics                                                */
  117. /*--------------------------------------------------------------------------*/
  118. #define NUL 0x00
  119. #define SOH 0x01
  120. #define STX 0x02
  121. #define ETX 0x03
  122. #define EOT 0x04
  123. #define ENQ 0x05
  124. #define ACK 0x06
  125. #define BEL 0x07
  126. #define BS  0x08
  127. #define HT  0x09
  128. #define LV  0x0a
  129. #define VT  0x0b
  130. #define FF  0x0c
  131. #define CR  0x0d
  132. #define SO  0x0e
  133. #define SI  0x0f
  134. #define DLE 0x10
  135. #define DC1 0x11
  136. #define DC2 0x12
  137. #define DC3 0x13
  138. #define DC4 0x14
  139. #define NAK 0x15
  140. #define SYN 0x16
  141. #define ETB 0x17
  142. #define CAN 0x18
  143. #define EM  0x19
  144. #define SUB 0x1a
  145. #define ESC 0x1b
  146. #define FS  0x1c
  147. #define GS  0x1d
  148. #define RS  0x1e
  149. #define US  0x1f
  150.  
  151. /*--------------------------------------------------------------------------*/
  152. /* Parameters for calling ZMODEM routines                                   */
  153. /*--------------------------------------------------------------------------*/
  154. #define TRUE  1
  155. #define FALSE 0
  156. #define END_BATCH (-1)
  157. #define DELETE_AFTER  '-'
  158. #define TRUNC_AFTER   '#'
  159. #define NOTHING_AFTER '@'
  160. #define TRUNC_AFTER   '#'
  161. #define NOTHING_AFTER '@'
  162. #define DO_WAZOO   TRUE
  163. #define D
  164.